deliverTo

public static void deliverTo(Path chromiumDir)

Delivers Chromium binaries to the given chromiumDir if necessary.

By default, Engine unpacks and copies the binaries when it is created. This may take up to several seconds, depending on the hardware. Use this method to do it in advance.

Creates the given directory if it doesn't exist.

Does nothing if the binaries are already delivered.

Parameters

chromiumDir

the directory to copy the Chromium binaries to

See also

the default directory for the Chromium binaries

Throws

when the delivery of the Chromium binaries failed


public static void deliverTo(Path chromiumDir, BinariesDelivery delivery)

Delivers Chromium binaries to the given chromiumDir, but delegates actual delivery to the given delivery.

Use this method to override how JxBrowser locates and obtains the binaries.

Creates the given directory if it doesn't exist.

Does nothing if the binaries are already delivered.

Parameters

chromiumDir

the path to the directory where the binaries must be copied

delivery

the delivery mechanism of the binaries

See also

the default directory for binaries

Throws

when the verification of the Chromium binary files has failed or the binaries couldn't be extracted from the resources